import React from 'react';
import DataTable from 'components/DataTable';
import Icon from 'components/Icon';
import Button from 'components/Button';
export default (self) => [
    {
        title: '服务名称',
        name: 'service_name',
        tableItem: {},
        searchItem: {
            group: 'abc'
        },
    },
    {
        title: '姓名',
        name: 'name',
        tableItem: {},
    },
    {
        title: '手机号',
        name: 'mobile',
        tableItem: {},
    },
    {
        title: '地址',
        name: 'address',
        tableItem: {},
    },
    {
        title: '操作',
        tableItem: {
            width: 90,
            fixed: 'right',
            render: (text, record) => (
                <DataTable.Oper>
                    {/* <Button tooltip="修改" onClick={e => self.onUpdate(record)}>
                        <Icon type="edit" />
                    </Button> */}
                    <Button tooltip="删除" onClick={e => self.onDelete(record)}>
                        <Icon type="trash" />
                    </Button>
                </DataTable.Oper>
            )
        }
    }
];
